﻿#ifndef SYSTEMSETTING_H
#define SYSTEMSETTING_H

#include <QWidget>
#include <QDebug>
#include <QSerialPortInfo>
#include <QSerialPort>

namespace Ui {
class SystemSetting;
}



class SystemSetting : public QWidget
{
    Q_OBJECT

public:
    explicit SystemSetting(QWidget *parent = nullptr);
    ~SystemSetting();

    struct SERIAL_INFO
    {
        QString serial_name;
        QSerialPort::BaudRate serial_baud;
    };

    SERIAL_INFO GetSerialInfo(void);

private slots:
    void on_cbx_port_activated(int index);

private:
    Ui::SystemSetting *ui;
    SERIAL_INFO serial_info;
};

#endif // SYSTEMSETTING_H
